package com.itheima.string.method;

public class StringMethodDemo {
    /*
        String类中用于内容的比较
     */
    public static void main(String[] args) {
        String s1="abc";
        String s2=new String("abc");
        System.out.println(s1==s2);
        System.out.println(s1.equals(s2));

    }
}
